package com.it.myh;

import java.util.Arrays;
import java.util.Comparator;

/**
 * @Description: // 类说明，在创建类时要填写
 * @ClassName: Ev_0206_04    // 类名，会自动填充
 * @Author: MYH          // 创建者
 * @Date: 2023/2/6 17:04   // 时间
 * @Version: 1.0     // 版本
 */
public class Ev_0206_04 {

    public static void main(String[] args) {
        String[] arr = new String[]{"AA","WW","CC","BB","VV"};
        Arrays.sort(arr, new Comparator<String>() {
            @Override
            public int compare(String o1, String o2) {
                return -o1.compareTo(o2);
            }
        });
        for (String s : arr) {
            System.out.println(s);
        }
        Comparator<String> stringComparator = new Comparator<String>() {
            @Override
            public int compare(String o1, String o2) {
                return 0;
            }

            @Override
            public boolean equals(Object obj) {
                return false;
            }
        };

        String q = "12";
        String w = "456=";

    }
}
